public class Person {  //Object
    private String name;         //成员变量
    private char sex;
    private int age;

    public String getName() {     //成员方法
        return name;
    }

    public void setName(String name) {
        this.name = name;

        System.out.println("setName方法中的this:"+this);
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
